<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: drogon::Cookie类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacedrogon.html">drogon</a></li><li class="navelem"><a class="el" href="classdrogon_1_1Cookie.html">Cookie</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classdrogon_1_1Cookie-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">drogon::Cookie类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>this class represents a cookie entity.  
 <a href="classdrogon_1_1Cookie.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="Cookie_8h_source.html">Cookie.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:af0969c5652b7eeab6ccf22d319047e3c" id="r_af0969c5652b7eeab6ccf22d319047e3c"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a> { <a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3caf2655c2dee87cb9b0646f678a630394b">kNull</a>
, <a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3caf01aa2850e935651ef4763f1fa9fdf11">kLax</a>
, <a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3ca35215d4c3b69349b967c421fd68b0b36">kStrict</a>
, <a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3ca35c3ace1970663a16e5c65baa5941b13">kNone</a>
 }</td></tr>
<tr class="separator:af0969c5652b7eeab6ccf22d319047e3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad2d57c056e047790c2fa230e1f6d45f3" id="r_ad2d57c056e047790c2fa230e1f6d45f3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#ad2d57c056e047790c2fa230e1f6d45f3">Cookie</a> (std::string <a class="el" href="classdrogon_1_1Cookie.html#a99966bd140f40b8ef4c0e9f011ff3f48">key</a>, std::string <a class="el" href="classdrogon_1_1Cookie.html#aafe7fb695bde5da0cde5f4f36269987d">value</a>)</td></tr>
<tr class="memdesc:ad2d57c056e047790c2fa230e1f6d45f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor  <br /></td></tr>
<tr class="separator:ad2d57c056e047790c2fa230e1f6d45f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a250bf074167b5d15edd6769096c45478" id="r_a250bf074167b5d15edd6769096c45478"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a250bf074167b5d15edd6769096c45478">Cookie</a> ()=default</td></tr>
<tr class="separator:a250bf074167b5d15edd6769096c45478"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a989e976109a7c1bbbad2fe3b300cba18" id="r_a989e976109a7c1bbbad2fe3b300cba18"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a989e976109a7c1bbbad2fe3b300cba18">setExpiresDate</a> (const trantor::Date &amp;date)</td></tr>
<tr class="memdesc:a989e976109a7c1bbbad2fe3b300cba18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Expires Date  <br /></td></tr>
<tr class="separator:a989e976109a7c1bbbad2fe3b300cba18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e19df314c1f82f92fe1660f561f53e9" id="r_a1e19df314c1f82f92fe1660f561f53e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a1e19df314c1f82f92fe1660f561f53e9">setHttpOnly</a> (bool only)</td></tr>
<tr class="memdesc:a1e19df314c1f82f92fe1660f561f53e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set if the cookie is HTTP only.  <br /></td></tr>
<tr class="separator:a1e19df314c1f82f92fe1660f561f53e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b691b49250d62b7b362dc0bc3712b19" id="r_a3b691b49250d62b7b362dc0bc3712b19"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a3b691b49250d62b7b362dc0bc3712b19">setSecure</a> (bool secure)</td></tr>
<tr class="memdesc:a3b691b49250d62b7b362dc0bc3712b19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set if the cookie is secure.  <br /></td></tr>
<tr class="separator:a3b691b49250d62b7b362dc0bc3712b19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6fba12dad8155ac352552d7f50f4af2" id="r_af6fba12dad8155ac352552d7f50f4af2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#af6fba12dad8155ac352552d7f50f4af2">setDomain</a> (const std::string &amp;<a class="el" href="classdrogon_1_1Cookie.html#a27774667f99fc560c41832fe9bb3ea22">domain</a>)</td></tr>
<tr class="memdesc:af6fba12dad8155ac352552d7f50f4af2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the domain of the cookie.  <br /></td></tr>
<tr class="separator:af6fba12dad8155ac352552d7f50f4af2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cffaef27cc5d4dadc35b42b04e66711" id="r_a0cffaef27cc5d4dadc35b42b04e66711"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a0cffaef27cc5d4dadc35b42b04e66711">setDomain</a> (std::string &amp;&amp;<a class="el" href="classdrogon_1_1Cookie.html#a27774667f99fc560c41832fe9bb3ea22">domain</a>)</td></tr>
<tr class="memdesc:a0cffaef27cc5d4dadc35b42b04e66711"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the domain of the cookie.  <br /></td></tr>
<tr class="separator:a0cffaef27cc5d4dadc35b42b04e66711"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2af53a813afe603e89805c085a4943dd" id="r_a2af53a813afe603e89805c085a4943dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a2af53a813afe603e89805c085a4943dd">setPath</a> (const std::string &amp;<a class="el" href="classdrogon_1_1Cookie.html#a34b81347466e4d32d28f86274c418efc">path</a>)</td></tr>
<tr class="memdesc:a2af53a813afe603e89805c085a4943dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the path of the cookie.  <br /></td></tr>
<tr class="separator:a2af53a813afe603e89805c085a4943dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf4e2d0e02843fde454e9b22f344e9c6" id="r_abf4e2d0e02843fde454e9b22f344e9c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#abf4e2d0e02843fde454e9b22f344e9c6">setPath</a> (std::string &amp;&amp;<a class="el" href="classdrogon_1_1Cookie.html#a34b81347466e4d32d28f86274c418efc">path</a>)</td></tr>
<tr class="memdesc:abf4e2d0e02843fde454e9b22f344e9c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the path of the cookie.  <br /></td></tr>
<tr class="separator:abf4e2d0e02843fde454e9b22f344e9c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a68e18b398d25c1c3466537d93a25e0" id="r_a5a68e18b398d25c1c3466537d93a25e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a5a68e18b398d25c1c3466537d93a25e0">setKey</a> (const std::string &amp;<a class="el" href="classdrogon_1_1Cookie.html#a99966bd140f40b8ef4c0e9f011ff3f48">key</a>)</td></tr>
<tr class="memdesc:a5a68e18b398d25c1c3466537d93a25e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the key of the cookie.  <br /></td></tr>
<tr class="separator:a5a68e18b398d25c1c3466537d93a25e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a661a260a04d1709cb31e1dc817559deb" id="r_a661a260a04d1709cb31e1dc817559deb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a661a260a04d1709cb31e1dc817559deb">setKey</a> (std::string &amp;&amp;<a class="el" href="classdrogon_1_1Cookie.html#a99966bd140f40b8ef4c0e9f011ff3f48">key</a>)</td></tr>
<tr class="memdesc:a661a260a04d1709cb31e1dc817559deb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the key of the cookie.  <br /></td></tr>
<tr class="separator:a661a260a04d1709cb31e1dc817559deb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad44aa3e69c3904f3ce760d173affa72c" id="r_ad44aa3e69c3904f3ce760d173affa72c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#ad44aa3e69c3904f3ce760d173affa72c">setValue</a> (const std::string &amp;<a class="el" href="classdrogon_1_1Cookie.html#aafe7fb695bde5da0cde5f4f36269987d">value</a>)</td></tr>
<tr class="memdesc:ad44aa3e69c3904f3ce760d173affa72c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value of the cookie.  <br /></td></tr>
<tr class="separator:ad44aa3e69c3904f3ce760d173affa72c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9f9fa5e952552fd07db0d9b41243f2f" id="r_ac9f9fa5e952552fd07db0d9b41243f2f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#ac9f9fa5e952552fd07db0d9b41243f2f">setValue</a> (std::string &amp;&amp;<a class="el" href="classdrogon_1_1Cookie.html#aafe7fb695bde5da0cde5f4f36269987d">value</a>)</td></tr>
<tr class="memdesc:ac9f9fa5e952552fd07db0d9b41243f2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value of the cookie.  <br /></td></tr>
<tr class="separator:ac9f9fa5e952552fd07db0d9b41243f2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4d7b38a06732fc404c3a23cf39e819c" id="r_ad4d7b38a06732fc404c3a23cf39e819c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#ad4d7b38a06732fc404c3a23cf39e819c">setMaxAge</a> (int <a class="el" href="classdrogon_1_1Cookie.html#aafe7fb695bde5da0cde5f4f36269987d">value</a>)</td></tr>
<tr class="memdesc:ad4d7b38a06732fc404c3a23cf39e819c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the max-age of the cookie.  <br /></td></tr>
<tr class="separator:ad4d7b38a06732fc404c3a23cf39e819c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96bef57ff44f4bba62f7ddf079decb52" id="r_a96bef57ff44f4bba62f7ddf079decb52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a96bef57ff44f4bba62f7ddf079decb52">setSameSite</a> (<a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a> <a class="el" href="classdrogon_1_1Cookie.html#a23e3f801ae1022685a009d70cfe81eb7">sameSite</a>)</td></tr>
<tr class="memdesc:a96bef57ff44f4bba62f7ddf079decb52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the same site of the cookie.  <br /></td></tr>
<tr class="separator:a96bef57ff44f4bba62f7ddf079decb52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cdb6a45965f596f72fe43717029d7fd" id="r_a2cdb6a45965f596f72fe43717029d7fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a2cdb6a45965f596f72fe43717029d7fd">setPartitioned</a> (bool partitioned)</td></tr>
<tr class="memdesc:a2cdb6a45965f596f72fe43717029d7fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the partitioned status of the cookie  <br /></td></tr>
<tr class="separator:a2cdb6a45965f596f72fe43717029d7fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca3cee5a05ff2044e75f6d87b3a2cf43" id="r_aca3cee5a05ff2044e75f6d87b3a2cf43"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#aca3cee5a05ff2044e75f6d87b3a2cf43">cookieString</a> () const</td></tr>
<tr class="memdesc:aca3cee5a05ff2044e75f6d87b3a2cf43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the string value of the cookie  <br /></td></tr>
<tr class="separator:aca3cee5a05ff2044e75f6d87b3a2cf43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ad7e1e3828e4fb9cc160f6888d3ad83" id="r_a6ad7e1e3828e4fb9cc160f6888d3ad83"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a6ad7e1e3828e4fb9cc160f6888d3ad83">getCookieString</a> () const</td></tr>
<tr class="memdesc:a6ad7e1e3828e4fb9cc160f6888d3ad83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the string value of the cookie  <br /></td></tr>
<tr class="separator:a6ad7e1e3828e4fb9cc160f6888d3ad83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab52c5c11a57a46985735c4579654aa6e" id="r_ab52c5c11a57a46985735c4579654aa6e"><td class="memItemLeft" align="right" valign="top">const trantor::Date &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#ab52c5c11a57a46985735c4579654aa6e">expiresDate</a> () const</td></tr>
<tr class="memdesc:ab52c5c11a57a46985735c4579654aa6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the expiration date of the cookie  <br /></td></tr>
<tr class="separator:ab52c5c11a57a46985735c4579654aa6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac421044cf18123aba9e5bac839003e7d" id="r_ac421044cf18123aba9e5bac839003e7d"><td class="memItemLeft" align="right" valign="top">const trantor::Date &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#ac421044cf18123aba9e5bac839003e7d">getExpiresDate</a> () const</td></tr>
<tr class="memdesc:ac421044cf18123aba9e5bac839003e7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the expiration date of the cookie  <br /></td></tr>
<tr class="separator:ac421044cf18123aba9e5bac839003e7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27774667f99fc560c41832fe9bb3ea22" id="r_a27774667f99fc560c41832fe9bb3ea22"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a27774667f99fc560c41832fe9bb3ea22">domain</a> () const</td></tr>
<tr class="memdesc:a27774667f99fc560c41832fe9bb3ea22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the domain of the cookie  <br /></td></tr>
<tr class="separator:a27774667f99fc560c41832fe9bb3ea22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed5163cd856d631e9cd955423e3cabc4" id="r_aed5163cd856d631e9cd955423e3cabc4"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#aed5163cd856d631e9cd955423e3cabc4">getDomain</a> () const</td></tr>
<tr class="memdesc:aed5163cd856d631e9cd955423e3cabc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the domain of the cookie  <br /></td></tr>
<tr class="separator:aed5163cd856d631e9cd955423e3cabc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34b81347466e4d32d28f86274c418efc" id="r_a34b81347466e4d32d28f86274c418efc"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a34b81347466e4d32d28f86274c418efc">path</a> () const</td></tr>
<tr class="memdesc:a34b81347466e4d32d28f86274c418efc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the path of the cookie  <br /></td></tr>
<tr class="separator:a34b81347466e4d32d28f86274c418efc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a033d3f012dc14972d19e58e3318b3631" id="r_a033d3f012dc14972d19e58e3318b3631"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a033d3f012dc14972d19e58e3318b3631">getPath</a> () const</td></tr>
<tr class="memdesc:a033d3f012dc14972d19e58e3318b3631"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the path of the cookie  <br /></td></tr>
<tr class="separator:a033d3f012dc14972d19e58e3318b3631"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99966bd140f40b8ef4c0e9f011ff3f48" id="r_a99966bd140f40b8ef4c0e9f011ff3f48"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a99966bd140f40b8ef4c0e9f011ff3f48">key</a> () const</td></tr>
<tr class="memdesc:a99966bd140f40b8ef4c0e9f011ff3f48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the keyword of the cookie  <br /></td></tr>
<tr class="separator:a99966bd140f40b8ef4c0e9f011ff3f48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58ba3a205e04434e4cbe2102aff6e9e5" id="r_a58ba3a205e04434e4cbe2102aff6e9e5"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a58ba3a205e04434e4cbe2102aff6e9e5">getKey</a> () const</td></tr>
<tr class="memdesc:a58ba3a205e04434e4cbe2102aff6e9e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the keyword of the cookie  <br /></td></tr>
<tr class="separator:a58ba3a205e04434e4cbe2102aff6e9e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafe7fb695bde5da0cde5f4f36269987d" id="r_aafe7fb695bde5da0cde5f4f36269987d"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#aafe7fb695bde5da0cde5f4f36269987d">value</a> () const</td></tr>
<tr class="memdesc:aafe7fb695bde5da0cde5f4f36269987d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of the cookie  <br /></td></tr>
<tr class="separator:aafe7fb695bde5da0cde5f4f36269987d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a131941e961860a2d21d98837f14bf2d0" id="r_a131941e961860a2d21d98837f14bf2d0"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a131941e961860a2d21d98837f14bf2d0">getValue</a> () const</td></tr>
<tr class="memdesc:a131941e961860a2d21d98837f14bf2d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of the cookie  <br /></td></tr>
<tr class="separator:a131941e961860a2d21d98837f14bf2d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42fba7626723b266401967d236e636cd" id="r_a42fba7626723b266401967d236e636cd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a42fba7626723b266401967d236e636cd">operator bool</a> () const</td></tr>
<tr class="memdesc:a42fba7626723b266401967d236e636cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the cookie is empty  <br /></td></tr>
<tr class="separator:a42fba7626723b266401967d236e636cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9537e5e55c20ec9a0a759a31a19501bb" id="r_a9537e5e55c20ec9a0a759a31a19501bb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a9537e5e55c20ec9a0a759a31a19501bb">isHttpOnly</a> () const</td></tr>
<tr class="memdesc:a9537e5e55c20ec9a0a759a31a19501bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the cookie is HTTP only  <br /></td></tr>
<tr class="separator:a9537e5e55c20ec9a0a759a31a19501bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65e98d927a2e294a74e95a640edd44cb" id="r_a65e98d927a2e294a74e95a640edd44cb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a65e98d927a2e294a74e95a640edd44cb">isSecure</a> () const</td></tr>
<tr class="memdesc:a65e98d927a2e294a74e95a640edd44cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the cookie is secure.  <br /></td></tr>
<tr class="separator:a65e98d927a2e294a74e95a640edd44cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a304637a67b05d5cbc7b0304bba1fb7d5" id="r_a304637a67b05d5cbc7b0304bba1fb7d5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a304637a67b05d5cbc7b0304bba1fb7d5">isPartitioned</a> () const</td></tr>
<tr class="memdesc:a304637a67b05d5cbc7b0304bba1fb7d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the cookie is partitioned.  <br /></td></tr>
<tr class="separator:a304637a67b05d5cbc7b0304bba1fb7d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73789ead5dcf8fd2ef9ba74f8249c61a" id="r_a73789ead5dcf8fd2ef9ba74f8249c61a"><td class="memItemLeft" align="right" valign="top">std::optional&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a73789ead5dcf8fd2ef9ba74f8249c61a">maxAge</a> () const</td></tr>
<tr class="memdesc:a73789ead5dcf8fd2ef9ba74f8249c61a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the max-age of the cookie  <br /></td></tr>
<tr class="separator:a73789ead5dcf8fd2ef9ba74f8249c61a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e2cdb5705c8ff9916d25e19882a4da2" id="r_a2e2cdb5705c8ff9916d25e19882a4da2"><td class="memItemLeft" align="right" valign="top">std::optional&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a2e2cdb5705c8ff9916d25e19882a4da2">getMaxAge</a> () const</td></tr>
<tr class="memdesc:a2e2cdb5705c8ff9916d25e19882a4da2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the max-age of the cookie  <br /></td></tr>
<tr class="separator:a2e2cdb5705c8ff9916d25e19882a4da2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23e3f801ae1022685a009d70cfe81eb7" id="r_a23e3f801ae1022685a009d70cfe81eb7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a23e3f801ae1022685a009d70cfe81eb7">sameSite</a> () const</td></tr>
<tr class="memdesc:a23e3f801ae1022685a009d70cfe81eb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the same site of the cookie  <br /></td></tr>
<tr class="separator:a23e3f801ae1022685a009d70cfe81eb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45747e013c7f1c856749a64b9a4e2ab5" id="r_a45747e013c7f1c856749a64b9a4e2ab5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a45747e013c7f1c856749a64b9a4e2ab5">getSameSite</a> () const</td></tr>
<tr class="memdesc:a45747e013c7f1c856749a64b9a4e2ab5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the same site of the cookie  <br /></td></tr>
<tr class="separator:a45747e013c7f1c856749a64b9a4e2ab5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a172755eea6ff31ea230016e03e836033" id="r_a172755eea6ff31ea230016e03e836033"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a172755eea6ff31ea230016e03e836033">stricmp</a> (const std::string_view str1, const std::string_view str2)</td></tr>
<tr class="memdesc:a172755eea6ff31ea230016e03e836033"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare two strings ignoring the their cases  <br /></td></tr>
<tr class="separator:a172755eea6ff31ea230016e03e836033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dad1a1327062977864fac7bca27c448" id="r_a0dad1a1327062977864fac7bca27c448"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a0dad1a1327062977864fac7bca27c448">convertString2SameSite</a> (std::string_view <a class="el" href="classdrogon_1_1Cookie.html#a23e3f801ae1022685a009d70cfe81eb7">sameSite</a>)</td></tr>
<tr class="memdesc:a0dad1a1327062977864fac7bca27c448"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a string value to its associated enum class SameSite value  <br /></td></tr>
<tr class="separator:a0dad1a1327062977864fac7bca27c448"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f93c8ee9c7490778877505350841ff7" id="r_a7f93c8ee9c7490778877505350841ff7"><td class="memItemLeft" align="right" valign="top">static std::string_view&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1Cookie.html#a7f93c8ee9c7490778877505350841ff7">convertSameSite2String</a> (<a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a> <a class="el" href="classdrogon_1_1Cookie.html#a23e3f801ae1022685a009d70cfe81eb7">sameSite</a>)</td></tr>
<tr class="memdesc:a7f93c8ee9c7490778877505350841ff7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an enum class SameSite value to its associated string value  <br /></td></tr>
<tr class="separator:a7f93c8ee9c7490778877505350841ff7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>this class represents a cookie entity. </p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="af0969c5652b7eeab6ccf22d319047e3c" name="af0969c5652b7eeab6ccf22d319047e3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0969c5652b7eeab6ccf22d319047e3c">&#9670;&#160;</a></span>SameSite</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum class <a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">drogon::Cookie::SameSite</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="af0969c5652b7eeab6ccf22d319047e3caf2655c2dee87cb9b0646f678a630394b" name="af0969c5652b7eeab6ccf22d319047e3caf2655c2dee87cb9b0646f678a630394b"></a>kNull&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af0969c5652b7eeab6ccf22d319047e3caf01aa2850e935651ef4763f1fa9fdf11" name="af0969c5652b7eeab6ccf22d319047e3caf01aa2850e935651ef4763f1fa9fdf11"></a>kLax&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af0969c5652b7eeab6ccf22d319047e3ca35215d4c3b69349b967c421fd68b0b36" name="af0969c5652b7eeab6ccf22d319047e3ca35215d4c3b69349b967c421fd68b0b36"></a>kStrict&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af0969c5652b7eeab6ccf22d319047e3ca35c3ace1970663a16e5c65baa5941b13" name="af0969c5652b7eeab6ccf22d319047e3ca35c3ace1970663a16e5c65baa5941b13"></a>kNone&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="ad2d57c056e047790c2fa230e1f6d45f3" name="ad2d57c056e047790c2fa230e1f6d45f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2d57c056e047790c2fa230e1f6d45f3">&#9670;&#160;</a></span>Cookie() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">drogon::Cookie::Cookie </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>key of the cookie </td></tr>
    <tr><td class="paramname">value</td><td>value of the cookie </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a250bf074167b5d15edd6769096c45478" name="a250bf074167b5d15edd6769096c45478"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a250bf074167b5d15edd6769096c45478">&#9670;&#160;</a></span>Cookie() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">drogon::Cookie::Cookie </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a7f93c8ee9c7490778877505350841ff7" name="a7f93c8ee9c7490778877505350841ff7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f93c8ee9c7490778877505350841ff7">&#9670;&#160;</a></span>convertSameSite2String()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::string_view drogon::Cookie::convertSameSite2String </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a>&#160;</td>
          <td class="paramname"><em>sameSite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Converts an enum class SameSite value to its associated string value </p>

</div>
</div>
<a id="a0dad1a1327062977864fac7bca27c448" name="a0dad1a1327062977864fac7bca27c448"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dad1a1327062977864fac7bca27c448">&#9670;&#160;</a></span>convertString2SameSite()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a> drogon::Cookie::convertString2SameSite </td>
          <td>(</td>
          <td class="paramtype">std::string_view&#160;</td>
          <td class="paramname"><em>sameSite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Converts a string value to its associated enum class SameSite value </p>

</div>
</div>
<a id="aca3cee5a05ff2044e75f6d87b3a2cf43" name="aca3cee5a05ff2044e75f6d87b3a2cf43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca3cee5a05ff2044e75f6d87b3a2cf43">&#9670;&#160;</a></span>cookieString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string drogon::Cookie::cookieString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the string value of the cookie </p>

</div>
</div>
<a id="a27774667f99fc560c41832fe9bb3ea22" name="a27774667f99fc560c41832fe9bb3ea22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27774667f99fc560c41832fe9bb3ea22">&#9670;&#160;</a></span>domain()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::Cookie::domain </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the domain of the cookie </p>

</div>
</div>
<a id="ab52c5c11a57a46985735c4579654aa6e" name="ab52c5c11a57a46985735c4579654aa6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab52c5c11a57a46985735c4579654aa6e">&#9670;&#160;</a></span>expiresDate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const trantor::Date &amp; drogon::Cookie::expiresDate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the expiration date of the cookie </p>

</div>
</div>
<a id="a6ad7e1e3828e4fb9cc160f6888d3ad83" name="a6ad7e1e3828e4fb9cc160f6888d3ad83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ad7e1e3828e4fb9cc160f6888d3ad83">&#9670;&#160;</a></span>getCookieString()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string drogon::Cookie::getCookieString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the string value of the cookie </p>

</div>
</div>
<a id="aed5163cd856d631e9cd955423e3cabc4" name="aed5163cd856d631e9cd955423e3cabc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed5163cd856d631e9cd955423e3cabc4">&#9670;&#160;</a></span>getDomain()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::Cookie::getDomain </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the domain of the cookie </p>

</div>
</div>
<a id="ac421044cf18123aba9e5bac839003e7d" name="ac421044cf18123aba9e5bac839003e7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac421044cf18123aba9e5bac839003e7d">&#9670;&#160;</a></span>getExpiresDate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const trantor::Date &amp; drogon::Cookie::getExpiresDate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the expiration date of the cookie </p>

</div>
</div>
<a id="a58ba3a205e04434e4cbe2102aff6e9e5" name="a58ba3a205e04434e4cbe2102aff6e9e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58ba3a205e04434e4cbe2102aff6e9e5">&#9670;&#160;</a></span>getKey()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::Cookie::getKey </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the keyword of the cookie </p>

</div>
</div>
<a id="a2e2cdb5705c8ff9916d25e19882a4da2" name="a2e2cdb5705c8ff9916d25e19882a4da2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e2cdb5705c8ff9916d25e19882a4da2">&#9670;&#160;</a></span>getMaxAge()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::optional&lt; int &gt; drogon::Cookie::getMaxAge </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the max-age of the cookie </p>

</div>
</div>
<a id="a033d3f012dc14972d19e58e3318b3631" name="a033d3f012dc14972d19e58e3318b3631"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a033d3f012dc14972d19e58e3318b3631">&#9670;&#160;</a></span>getPath()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::Cookie::getPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the path of the cookie </p>

</div>
</div>
<a id="a45747e013c7f1c856749a64b9a4e2ab5" name="a45747e013c7f1c856749a64b9a4e2ab5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45747e013c7f1c856749a64b9a4e2ab5">&#9670;&#160;</a></span>getSameSite()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a> drogon::Cookie::getSameSite </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the same site of the cookie </p>

</div>
</div>
<a id="a131941e961860a2d21d98837f14bf2d0" name="a131941e961860a2d21d98837f14bf2d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a131941e961860a2d21d98837f14bf2d0">&#9670;&#160;</a></span>getValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::Cookie::getValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the value of the cookie </p>

</div>
</div>
<a id="a9537e5e55c20ec9a0a759a31a19501bb" name="a9537e5e55c20ec9a0a759a31a19501bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9537e5e55c20ec9a0a759a31a19501bb">&#9670;&#160;</a></span>isHttpOnly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool drogon::Cookie::isHttpOnly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if the cookie is HTTP only </p>
<dl class="section return"><dt>返回</dt><dd>true means the cookie is HTTP only </dd>
<dd>
false means the cookie is not HTTP only </dd></dl>

</div>
</div>
<a id="a304637a67b05d5cbc7b0304bba1fb7d5" name="a304637a67b05d5cbc7b0304bba1fb7d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a304637a67b05d5cbc7b0304bba1fb7d5">&#9670;&#160;</a></span>isPartitioned()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool drogon::Cookie::isPartitioned </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if the cookie is partitioned. </p>
<dl class="section return"><dt>返回</dt><dd>true means the cookie is partitioned. </dd>
<dd>
false means the cookie is not partitioned. </dd></dl>

</div>
</div>
<a id="a65e98d927a2e294a74e95a640edd44cb" name="a65e98d927a2e294a74e95a640edd44cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65e98d927a2e294a74e95a640edd44cb">&#9670;&#160;</a></span>isSecure()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool drogon::Cookie::isSecure </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if the cookie is secure. </p>
<dl class="section return"><dt>返回</dt><dd>true means the cookie is secure. </dd>
<dd>
false means the cookie is not secure. </dd></dl>

</div>
</div>
<a id="a99966bd140f40b8ef4c0e9f011ff3f48" name="a99966bd140f40b8ef4c0e9f011ff3f48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99966bd140f40b8ef4c0e9f011ff3f48">&#9670;&#160;</a></span>key()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::Cookie::key </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the keyword of the cookie </p>

</div>
</div>
<a id="a73789ead5dcf8fd2ef9ba74f8249c61a" name="a73789ead5dcf8fd2ef9ba74f8249c61a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73789ead5dcf8fd2ef9ba74f8249c61a">&#9670;&#160;</a></span>maxAge()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::optional&lt; int &gt; drogon::Cookie::maxAge </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the max-age of the cookie </p>

</div>
</div>
<a id="a42fba7626723b266401967d236e636cd" name="a42fba7626723b266401967d236e636cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42fba7626723b266401967d236e636cd">&#9670;&#160;</a></span>operator bool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">drogon::Cookie::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check if the cookie is empty </p>
<dl class="section return"><dt>返回</dt><dd>true means the cookie is not empty </dd>
<dd>
false means the cookie is empty </dd></dl>

</div>
</div>
<a id="a34b81347466e4d32d28f86274c418efc" name="a34b81347466e4d32d28f86274c418efc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34b81347466e4d32d28f86274c418efc">&#9670;&#160;</a></span>path()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::Cookie::path </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the path of the cookie </p>

</div>
</div>
<a id="a23e3f801ae1022685a009d70cfe81eb7" name="a23e3f801ae1022685a009d70cfe81eb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23e3f801ae1022685a009d70cfe81eb7">&#9670;&#160;</a></span>sameSite()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a> drogon::Cookie::sameSite </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the same site of the cookie </p>

</div>
</div>
<a id="af6fba12dad8155ac352552d7f50f4af2" name="af6fba12dad8155ac352552d7f50f4af2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6fba12dad8155ac352552d7f50f4af2">&#9670;&#160;</a></span>setDomain() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setDomain </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>domain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the domain of the cookie. </p>

</div>
</div>
<a id="a0cffaef27cc5d4dadc35b42b04e66711" name="a0cffaef27cc5d4dadc35b42b04e66711"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cffaef27cc5d4dadc35b42b04e66711">&#9670;&#160;</a></span>setDomain() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setDomain </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&amp;&#160;</td>
          <td class="paramname"><em>domain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the domain of the cookie. </p>

</div>
</div>
<a id="a989e976109a7c1bbbad2fe3b300cba18" name="a989e976109a7c1bbbad2fe3b300cba18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a989e976109a7c1bbbad2fe3b300cba18">&#9670;&#160;</a></span>setExpiresDate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setExpiresDate </td>
          <td>(</td>
          <td class="paramtype">const trantor::Date &amp;&#160;</td>
          <td class="paramname"><em>date</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the Expires Date </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">date</td><td>The expiration date </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1e19df314c1f82f92fe1660f561f53e9" name="a1e19df314c1f82f92fe1660f561f53e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e19df314c1f82f92fe1660f561f53e9">&#9670;&#160;</a></span>setHttpOnly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setHttpOnly </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>only</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set if the cookie is HTTP only. </p>

</div>
</div>
<a id="a5a68e18b398d25c1c3466537d93a25e0" name="a5a68e18b398d25c1c3466537d93a25e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a68e18b398d25c1c3466537d93a25e0">&#9670;&#160;</a></span>setKey() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setKey </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the key of the cookie. </p>

</div>
</div>
<a id="a661a260a04d1709cb31e1dc817559deb" name="a661a260a04d1709cb31e1dc817559deb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a661a260a04d1709cb31e1dc817559deb">&#9670;&#160;</a></span>setKey() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setKey </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&amp;&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the key of the cookie. </p>

</div>
</div>
<a id="ad4d7b38a06732fc404c3a23cf39e819c" name="ad4d7b38a06732fc404c3a23cf39e819c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4d7b38a06732fc404c3a23cf39e819c">&#9670;&#160;</a></span>setMaxAge()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setMaxAge </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the max-age of the cookie. </p>

</div>
</div>
<a id="a2cdb6a45965f596f72fe43717029d7fd" name="a2cdb6a45965f596f72fe43717029d7fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cdb6a45965f596f72fe43717029d7fd">&#9670;&#160;</a></span>setPartitioned()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setPartitioned </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>partitioned</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the partitioned status of the cookie </p>

</div>
</div>
<a id="a2af53a813afe603e89805c085a4943dd" name="a2af53a813afe603e89805c085a4943dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2af53a813afe603e89805c085a4943dd">&#9670;&#160;</a></span>setPath() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setPath </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the path of the cookie. </p>

</div>
</div>
<a id="abf4e2d0e02843fde454e9b22f344e9c6" name="abf4e2d0e02843fde454e9b22f344e9c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf4e2d0e02843fde454e9b22f344e9c6">&#9670;&#160;</a></span>setPath() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setPath </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the path of the cookie. </p>

</div>
</div>
<a id="a96bef57ff44f4bba62f7ddf079decb52" name="a96bef57ff44f4bba62f7ddf079decb52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96bef57ff44f4bba62f7ddf079decb52">&#9670;&#160;</a></span>setSameSite()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setSameSite </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdrogon_1_1Cookie.html#af0969c5652b7eeab6ccf22d319047e3c">SameSite</a>&#160;</td>
          <td class="paramname"><em>sameSite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the same site of the cookie. </p>

</div>
</div>
<a id="a3b691b49250d62b7b362dc0bc3712b19" name="a3b691b49250d62b7b362dc0bc3712b19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b691b49250d62b7b362dc0bc3712b19">&#9670;&#160;</a></span>setSecure()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setSecure </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>secure</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set if the cookie is secure. </p>

</div>
</div>
<a id="ad44aa3e69c3904f3ce760d173affa72c" name="ad44aa3e69c3904f3ce760d173affa72c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad44aa3e69c3904f3ce760d173affa72c">&#9670;&#160;</a></span>setValue() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setValue </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the value of the cookie. </p>

</div>
</div>
<a id="ac9f9fa5e952552fd07db0d9b41243f2f" name="ac9f9fa5e952552fd07db0d9b41243f2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9f9fa5e952552fd07db0d9b41243f2f">&#9670;&#160;</a></span>setValue() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void drogon::Cookie::setValue </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the value of the cookie. </p>

</div>
</div>
<a id="a172755eea6ff31ea230016e03e836033" name="a172755eea6ff31ea230016e03e836033"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a172755eea6ff31ea230016e03e836033">&#9670;&#160;</a></span>stricmp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool drogon::Cookie::stricmp </td>
          <td>(</td>
          <td class="paramtype">const std::string_view&#160;</td>
          <td class="paramname"><em>str1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string_view&#160;</td>
          <td class="paramname"><em>str2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compare two strings ignoring the their cases </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">str1</td><td>string to check its value </td></tr>
    <tr><td class="paramname">str2</td><td>string to check against, written in lower case</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>the function is optimized to check for cookie's samesite value where we check if the value equals to a specific value we already know in str2. so the function doesn't apply tolower to the second argument str2 as it's always in lower case.</dd></dl>
<dl class="section return"><dt>返回</dt><dd>true if both strings are equal ignoring case </dd></dl>

</div>
</div>
<a id="aafe7fb695bde5da0cde5f4f36269987d" name="aafe7fb695bde5da0cde5f4f36269987d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafe7fb695bde5da0cde5f4f36269987d">&#9670;&#160;</a></span>value()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::Cookie::value </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the value of the cookie </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="Cookie_8h_source.html">Cookie.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
